package com.mmc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mmc.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 部门数据访问层
 *
 * @author kunfe
 * @since 2024-01-01
 */
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 统计部门下的用户数量
     */
    Long countUsersByDeptId(@Param("deptId") Long deptId);
} 